XPKIT=/projects/xpkit
SRCS=\
	Main.cc Globals.cc AppEnv.cc ShellApp.cc MainApp.cc \
	Gate.cc TcpGate.cc GateProc.cc 
OBJS=$(SRCS:.cc=.obj)
OUT=app.exe

CXX = cl
CFLAGS = /nologo /MT /EHsc /W3 /GR- /D_WIN32_WINNT=0400 /TP -I$(XPKIT)
LDFLAGS = /libpath:$(XPKIT)/release
LIBS = kernel32.lib user32.lib ws2_32.lib advapi32.lib xp.lib xpp.lib 

all: $(OBJS)
	link /nologo /out:$(OUT) $(LDFLAGS) $(LIBS) $(OBJS)

clean:
	del *.obj $(OUT)

.SUFFIXES: .cc .obj
.cc.obj:
	$(CXX) /c /TP $(CFLAGS) $<

